//
// example 11.1tx - http://tronixstuff.com/tutorials > Chapter 11
// 
// basic tx sketch - based on code by Mike McCauley 2010 http://www.open.com.au/mikem/arduino
//
//


// Need these lines below ///////////////////
#include <VirtualWire.h> 
#undef int
#undef abs
#undef double
#undef float
#undef round
////////////////////////////////////////////

void setup()
{
     // Initialise the IO and ISR
    vw_set_ptt_inverted(true);      // Required for RF Link module
    vw_setup(2400);                 // Bits per sec
    vw_set_tx_pin(1);               // pin 1 is the TX pin on our Arduino Duemilanove
}

void loop()
{
   const char *msg = "Hello, world";       // this is your message to send

   vw_send((uint8_t *)msg, strlen(msg));   // send the data out to the world
   vw_wait_tx();                           // Wait for sending of message to finish. 
   delay(200);
}
